<template>
    <div>
        <button @click="test">测试</button>
    </div>
</template>
<script>
export default {
    methods: {
        test() {
            this.$axios.get('test/test01')
                .then(response => {
                    alert(response.data);
                })
                .catch(error => {
                    alert(error)
                });
        },
    }
}
</script>
<style scoped></style>